import request from '@/utils/request'

// 查询收费记录列表
export function listIncomerecord(query) {
  return request({
    url: '/incomerecord/incomerecord/list',
    method: 'get',
    params: query
  })
}

// 查询收费记录详细
export function getIncomerecord(id) {
  return request({
    url: '/incomerecord/incomerecord/' + id,
    method: 'get'
  })
}

// 新增收费记录
export function addIncomerecord(data) {
  return request({
    url: '/incomerecord/incomerecord',
    method: 'post',
    data: data
  })
}

// 修改收费记录
export function updateIncomerecord(data) {
  return request({
    url: '/incomerecord/incomerecord',
    method: 'put',
    data: data
  })
}

// 删除收费记录
export function delIncomerecord(id) {
  return request({
    url: '/incomerecord/incomerecord/' + id,
    method: 'delete'
  })
}
